<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理员注册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
<!--
	body {font-family: Arial, Helvetica, sans-serif;
			font-size:12px;color:#666666;background:#fff;
			text-align:center;}
	* {margin:0;padding:0;}
	a {color:#1E7ACE;text-decoration:none; }
	a:hover {color:#000;text-decoration:underline;}
	h3 {font-size:14px;font-weight:bold;}
	pre,p {color:#1E7ACE;margin:4px;}
	input, select,textarea {padding:1px;
							margin:2px;font-size:11px;}
	.buttom{padding:1px 10px;font-size:12px;
			border:1px #1E7ACE solid;background:#D0F0FF;}
	#formwrapper {width:450px;margin:15px auto;
					padding:20px;text-align:left;border:1px solid #A4CDF2;}
	fieldset {padding:10px;margin-top:5px;
			border:1px solid #A4CDF2;background:#fff;}
	fieldset legend {color:#1E7ACE;font-weight:bold;
			padding:3px 20px 3px 20px;border:1px solid #A4CDF2; 
			background:#fff;}
	fieldset label {float:left;width:120px;
			text-align:right;padding:4px;margin:1px;}
	fieldset div {clear:left;margin-bottom:2px;}
	input { width:120px;}
	.enter{ text-align:center;}
	.clear {clear:both;}
-->
</style>
<script>
function reloadcode(){
	var verify=document.getElementById('verifycodePic');
	verify.setAttribute('src','/billiardsbar/VerifyCode?'+Math.random());
}
</script>
  </head>
  
  <body >
    <form action="RegServlet" method="post">
		<fieldset >
			<legend>管理员注册</legend>
			<p><strong>必须是超级管理员才能有权利注册管理员</strong></p>
			<p>系统自动给管理员编号前面加上‘NOL’</p>
			<div>
			<%
			String al=(String)request.getAttribute("errors");
			if(al!=null){
				out.println("<font color='red'><ul>");
				out.println("<li>" + al + "</li>");
				out.println("</ul></font>");
			}
			 %>
				
			</div>
			<div>
				<label for="superuserid">超级管理员ID：</label>
				<input type="text" name="superuserid" class="input" id="Name" size="20" maxlength="30" /> *<br/>
			</div>
			<div>
				<label for="superuserpassword">超级管理员密码：</label>
				<input type="password" name="superuserpassword" class="input" id="Name" size="20" maxlength="30" /> *<br/>
			</div>
			<div>
				<label for="userid">管理员ID：</label>
				<input type="text" name="userid" class="input" id="Name" size="20" maxlength="30" /> *<br/>
			</div>
			<div>
				<label for="username">管理员姓名：</label>
				<input type="text" name="username" class="input" id="Email" size="20" maxlength="150" align="left"/> *<br/>
			</div>
			<div>
				<label for="password">密码：</label>
				<input type="password" name="password" class="input" id="password" size="18" maxlength="15" /> *<br/>
			</div>
			<div>
				<label for="confirm_password">重复密码：</label>
				<input type="password" name="confirm_password" class="input" id="confirm_password" size="18" maxlength="15" /> *<br/>
			</div>
			<div>
				<label for="tele">电话号码：</label>
				<input name="tele" class="input"  size="11" maxlength="15" /> *<br/>
			</div>
			<div>
				<label for="verifycode">验证码：</label>
				<input  name="verifycode" class="input"  size="18" maxlength="15" /> *<br/>
				<img id="verifycodePic" src="/billiardsbar/VerifyCode" onClick="reloadcode();"><a href="javascript:reloadcode();">看不清点这里</a>
			</div>
			
			<div class="enter">
				<input type="submit" class="buttom" value="提交" /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
				<input type="reset" class="buttom" value="重置" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				<a href="Login.jsp">返回登录页面</a>
			</div>
</fieldset>
</form>

  </body>
</html>
